<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 根据选择的所属机构异步获取该机构下的所有角色 -->
<div class="checkbox-bar">
    <ul>
    <c:forEach items="${allRoles}" var="role">
       <c:set var="doCheck" value=""/>
	   <c:forEach items="${checkRoleList}" var="checkrole">
	           <c:if test="${checkrole.id ==  role.id}">
	               <c:set var="doCheck" value="checked"/>
	           </c:if>
	   </c:forEach>
      <li style="margin-top: 1px;float:left;">
          <input  type="checkbox" name="roleIdList" value="${role.id}" ${doCheck}  class="rolecheckbox">${role.nameAndOfficeName} &nbsp;&nbsp;</input> 
      </li>
    </c:forEach>
    </ul>
</div>
<span class="help-inline"><font color="red">*</font> </span>
